import { Session } from '/@/utils/storage';
export function getHost() {
  if (process.env.NODE_ENV === 'development') {
    return '/dev'
  } else {
    return  '/chat_api'
  }
}
export function getUploadUrl() {
  if (process.env.NODE_ENV === 'development') {
    return '/dev/api/upload/picture'
  } else {
    return  '/chat_api/api/upload/picture'
  }
}
export function getServerUrl() {
  if (process.env.NODE_ENV === 'development') {
    return '/dev/api'
  } else {
    return  '/chat_api/api'
  }
}

export function getServerPublic() {
  return Session.get('resource_address');
}